package com.docshell.exceptions;

/**
 * This Class is Abstract Class of All Exception Class
 *
 */
public abstract class AbstractException extends Exception {
    protected String goMessageCode = null;
    protected String goMessage = null;
    protected Throwable goCause = null;

    /**
     * @return Exception
     */
    public Throwable getException() {
        return goCause;
    }

    /**
     * @param exception
     */
    public void setException(Throwable cause) {
        this.goCause = cause;
    }

    /** 
     * @return message
     */
    public String getMessage() {
        return goMessage;
    }

    /**
     * @param message
     */
    public void setMessage(String message) {
        this.goMessage = message;
    }

    /**
     * @return
     */
    public String getMessageCode() {
        return goMessageCode;
    }

    /**
     * @param messageCode
     */
    public void setMessageCode(String messageCode) {
        this.goMessageCode = messageCode;
    }
}
